package com.youbo.form;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@ApiModel(value = "办理电子健康卡所需参数")
public class HisUser {

    @ApiModelProperty(value = "hospitalId")
    private String hospitalId;

    @ApiModelProperty(value = "院内主键")
    private Long brid;

    @ApiModelProperty(value = "门诊号码")
    private String mzhm;


    @ApiModelProperty(value = "病人卡号")
    private String brkh;


    @ApiModelProperty(value = "就诊卡号")
    @NotBlank(message = "就诊卡号不能为空")
    private String medicalCardNumber;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别 男，女")
    private String sex;

    @ApiModelProperty(value = "性别 1 男，2 女")
    private String gender;

    @ApiModelProperty(value = "出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    @ApiModelProperty(value = "出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthdate;

    @ApiModelProperty(value = "住址")
    private String address;

    /**
     * 身份证号，新生儿办卡时会传入母亲身份证+胎次
     */
    @ApiModelProperty(value = "身份证号，新生儿办卡时会传入母亲身份证+胎次")
    private String idcard;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @TableField(exist = false)
    private String idCardNo;

    /**
     * 是否是贫困人口 1 是, 0 不是
     */
    @TableField(exist = false)
    private int impoverished;
    /**
     * 病人性质
     */
    private String brxz;




    public String getIdCardNo() {
        return idcard;
    }


    public Date getBirthdate() {
        return birthday;
    }


}



